export const DynamicRoutes = [
  {
    path: "",
    component: () => import("@/components/layout/Index.vue"),
    name: "container",
    meta: {
      // requiresAuth: true,
      name: "首页",
    },
    children: [
      {
        path: "welcome",
        component: () => import("@/views/welcome/Index.vue"),
        name: "welcome",
        meta: {
          name: "欢迎",
          icon: "el-icon-star-on"
        },
      },
      {
        path: "vue3",
        component: () => import("@/views/home/Index.vue"),
        name: "vue3",
        meta: {
          name: "vue3",
          icon: "el-icon-s-home",
        },
      },
      {
        path: "element",
        component: () => import("@/views/element/Index.vue"),
        name: "element",
        meta: {
          name: "Element-Plus",
          icon: "el-icon-eleme"
        },
        children: [
          {
            path: "baseComponent",
            component: () => import("@/views/element/Button.vue"),
            name: "baseComponent",
            meta: {
              name: "基本组件",
              icon: "el-icon-monitor"
            }
          }
        ]
      },
      {
        path: "cnode",
        component: () => import("@/views/cnode/Index.vue"),
        name: "cnode",
        meta: {
          name: "cnode",
          icon: "el-icon-s-flag",
        },
      },
    ]
  }
];